package com.vanysoft.business.data.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author YangLei
 * @since 2018-07-09
 */
@TableName("BASE_CATEGORY_LIST")
public class CategoryList implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private String id;
    /**
     * 编码
     */
    @NotBlank(message = "{hint.notnull}")
    @Length(max = 30)
    private String code;
    /**
     * 父级编码
     */
    private String parentCode;
    /**
     * 英文描述
     */
    @NotBlank(message = "{hint.notnull}")
    @Length(max = 80)
    private String englishDescription;
    /**
     * 中文描述
     */
    @NotBlank(message = "{hint.notnull}")
    @Length(max = 80)
    private String chineseDescription;
    /**
     * 层级
     */
    @NotBlank(message = "{hint.notnull}")
    private String currentLevel;
    /**
     * 父层级
     */
    private String parentLevel;
    /**
     * 标记为能力主数据
     */
    private String mask;
    /**
     * 是否启用（1启用 0不启用）
     */
    private String isEnable;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy/MM/dd")
    private Date modifyTime;
    /**
     * 创建人
     */
    private String createUser;
    /**
     * 修改人
     */
    private String modifyUser;

    @TableField(exist = false)
    private String modifyUserName;

    @TableField(exist = false)
    private String pid;

    @TableField(exist = false)
    private String manager;

    @TableField(exist = false)
    private String managerName;

    @TableField(exist = false)
    private String sqme;

    @TableField(exist = false)
    private String sqmeName;

    @TableField(exist = false)
    private String sscme;

    @TableField(exist = false)
    private String sscmeName;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public String getEnglishDescription() {
        return englishDescription;
    }

    public void setEnglishDescription(String englishDescription) {
        this.englishDescription = englishDescription;
    }

    public String getChineseDescription() {
        return chineseDescription;
    }

    public void setChineseDescription(String chineseDescription) {
        this.chineseDescription = chineseDescription;
    }

    public String getCurrentLevel() {
        return currentLevel;
    }

    public void setCurrentLevel(String currentLevel) {
        this.currentLevel = currentLevel;
    }

    public String getParentLevel() {
        return parentLevel;
    }

    public void setParentLevel(String parentLevel) {
        this.parentLevel = parentLevel;
    }

    public String getMask() {
        return mask;
    }

    public void setMask(String mask) {
        this.mask = mask;
    }

    public String getIsEnable() {
        return isEnable;
    }

    public void setIsEnable(String isEnable) {
        this.isEnable = isEnable;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getModifyUser() {
        return modifyUser;
    }

    public void setModifyUser(String modifyUser) {
        this.modifyUser = modifyUser;
    }

    public String getManager() {
        return manager;
    }

    public void setManager(String manager) {
        this.manager = manager;
    }

    public String getManagerName() {
        return managerName;
    }

    public void setManagerName(String managerName) {
        this.managerName = managerName;
    }

    public String getSqme() {
        return sqme;
    }

    public void setSqme(String sqme) {
        this.sqme = sqme;
    }

    public String getSqmeName() {
        return sqmeName;
    }

    public void setSqmeName(String sqmeName) {
        this.sqmeName = sqmeName;
    }

    public String getSscme() {
        return sscme;
    }

    public void setSscme(String sscme) {
        this.sscme = sscme;
    }

    public String getSscmeName() {
        return sscmeName;
    }

    public void setSscmeName(String sscmeName) {
        this.sscmeName = sscmeName;
    }

    @Override
    public String toString() {
        return "CategoryList{" +
                "id=" + id +
                ", code=" + code +
                ", parentCode=" + parentCode +
                ", englishDescription=" + englishDescription +
                ", chineseDescription=" + chineseDescription +
                ", currentLevel=" + currentLevel +
                ", parentLevel=" + parentLevel +
                ", mask=" + mask +
                ", isEnable=" + isEnable +
                ", createTime=" + createTime +
                ", modifyTime=" + modifyTime +
                ", createUser=" + createUser +
                ", modifyUser=" + modifyUser +
                "}";
    }

    public String getModifyUserName() {
        return modifyUserName;
    }

    public void setModifyUserName(String modifyUserName) {
        this.modifyUserName = modifyUserName;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }
}
